package com.zr.inquiry.partner.mapper;

import com.zr.inquiry.partner.model.pojo.Partner;
import com.zr.inquiry.partner.model.pojo.SearchPartnerPageVo;
import com.zr.inquiry.total.model.pojo.SpareVendor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName PartnerMapper
 * @Description TODO
 * @Author 马家奎
 * @Date 2019/11/14 18:33
 */
@Mapper
public interface PartnerMapper {
    List<Partner> queryPartnerByLegalPersonId(Integer legalPersonId);

    List<SearchPartnerPageVo> queryPagePartner(SearchPartnerPageVo partnerPageVo);

    Integer getCount(SearchPartnerPageVo partnerPageVo);

    int queryPartnerByPartnerCodes(List<String> partnerCodes);

    List<String> queryByPartnerCodes(List<String> vendorCodes);

    List<SpareVendor> querySpareCodeByPartorCodes(List<String> parVendorCodes);

    void addPartner(List<Partner> supplierDetailsList);

    void deletePartnerByInquiryId(Integer inquiryId);
}
